package net.demo.admin.module.support.quartz.task.test;

import lombok.extern.slf4j.Slf4j;
import net.demo.admin.common.domain.ITask;
import net.demo.admin.util.SmartDateUtil;
import org.springframework.stereotype.Component;

import java.util.Date;

@Slf4j
@Component("exampleTask")
public class Example implements ITask {

    @Override
    public void execute(String paramJson) throws Exception {
        log.warn("{}-今天搬了{}块砖,paramJson:{}",SmartDateUtil.formatYMDHMS(new Date()),System.currentTimeMillis(),paramJson );
    }
}
